//
//  RechargeViewController.m
//  PPDL
//
//  Created by 王洋 on 2019/7/25.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "RechargeViewController.h"
#import "SelPayMethodViewController.h"

@interface RechargeViewController ()<UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UITextField *moneyTF;

@end

@implementation RechargeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [self initView];
}

- (void)initView {
    self.title = @"充值";
    
    self.moneyTF.delegate = self;
    self.moneyTF.text = TT_YUSHOUQUAN_MONEY;
}

- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
    return NO;
}

- (IBAction)rechargeClick:(id)sender {
    
    if (self.moneyTF.text.length) {
        SelPayMethodViewController *VC = [[SelPayMethodViewController alloc] init];
        VC.money = self.moneyTF.text;
        VC.payForType = PP_PayType_ForRecharge;
        [self.navigationController pushViewController:VC animated:YES];
    } else {
        [self alert:@"请输入充值金额"];
    }
    
    [self.view endEditing:YES];
}




@end
